package com.ym.medical.dao;

import com.ym.medical.domain.entity.TopicEntity;
import com.ym.medical.domain.vo.TopicVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

/**
 * 帖子Dao接口
 *
 * @author ym
 * @date 2020-08-24
 */
@Repository
public interface TopicDao extends Mapper<TopicEntity> {

	TopicVo selectByIdAndUserId(@Param("id") Long id, @Param("userId") Long userId);

	/**
	 * 话题收藏 加 1
	 * @param relId
	 */
	void updateColNum(Long relId);
}
